package net.sunofbeach.blog.mapper;

import net.sunofbeach.blog.pojo.Label;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author Bing
 * @since 2021-11-24
 */
public interface LabelMapper extends BaseMapper<Label> {

    /**
     * 根据标签名更新标签的数量
     * @param label
     * @return
     */
    int updateLabelCountByName(@Param("label") String label);
}
